package com.pb.web.action;

import com.opensymphony.xwork2.ActionSupport;

public class AddAction extends ActionSupport {

	private static final long serialVersionUID = 1548156283063761683L;
	private String title;
	private String houseType;
	private String district;
	private String street;
	private String timer;
	private String remark;

	@Override
	public String execute() throws Exception {
		System.out.println(title);
		System.out.println(houseType);
		System.out.println(district);
		System.out.println(street);
		System.out.println(timer);
		System.out.println(remark);
		if(title.equals("")){
			return ERROR;
		}
		return SUCCESS;
	}
	/**
	 * 获取 title
	 * 
	 * @return title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * 设置 title
	 * 
	 * @param title
	 *            title
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * 获取 houseType
	 * 
	 * @return houseType
	 */
	public String getHouseType() {
		return houseType;
	}

	/**
	 * 设置 houseType
	 * 
	 * @param houseType
	 *            houseType
	 */
	public void setHouseType(String houseType) {
		this.houseType = houseType;
	}

	/**
	 * 获取 district
	 * 
	 * @return district
	 */
	public String getDistrict() {
		return district;
	}

	/**
	 * 设置 district
	 * 
	 * @param district
	 *            district
	 */
	public void setDistrict(String district) {
		this.district = district;
	}

	/**
	 * 获取 street
	 * 
	 * @return street
	 */
	public String getStreet() {
		return street;
	}

	/**
	 * 设置 street
	 * 
	 * @param street
	 *            street
	 */
	public void setStreet(String street) {
		this.street = street;
	}

	/**
	 * 获取 timer
	 * 
	 * @return timer
	 */
	public String getTimer() {
		return timer;
	}

	/**
	 * 设置 timer
	 * 
	 * @param timer
	 *            timer
	 */
	public void setTimer(String timer) {
		this.timer = timer;
	}

	/**
	 * 获取 remark
	 * 
	 * @return remark
	 */
	public String getRemark() {
		return remark;
	}

	/**
	 * 设置 remark
	 * 
	 * @param remark
	 *            remark
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}

}
